<?php
class Race {

	var $id, $name, $prt, $filename;

	public function Race() {
		if (DEBUG) enex("Race::Race()");
	}

	public function buildFromString($string) {
		if (DEBUG) enter("Race::buildFromString($string)");
		list($this->id, $this->name, $this->prt, $this->filename) = split(" ", $string);
		if (DEBUG) ex("Race::buildFromString($string)");
		return $this;
	}

	public function toString() {
		if (DEBUG) enex("Race::toString()");
		return "$this->id $this->name $this->prt $this->filename";
	}

	public function getId() {
		if (DEBUG) enex("Race::getId()");
		return $this->id;
	}

	public function getName() {
		if (DEBUG) enex("Race::getName()");
		return $this->name;
	}

	public function getPrt() {
		if (DEBUG) enex("Race::getPrt()");
		return $this->prt;
	}

	public function getFilename() {
		if (DEBUG) enex("Race::getFilename()");
		return $this->filename;
	}

	public function setId($newId) {
		if (DEBUG) enex("Race::setId($newId)");
		$this->id = $newId;
	}

	public function setName($newName) {
		if (DEBUG) enex("Race::setName($newName)");
		$this->name = $newName;
	}

	public function setPrt($newPrt) {
		if (DEBUG) enex("Race::setPrt($newPrt)");
		$this->prt = $newPrt;
	}

	public function setFilename($newFilename) {
		if (DEBUG) enex("Race::setId($newFilename)");
		$this->filename = $newFilename;
	}
}
?>